"""
Lesson.19 22.07.2022
"""
l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
l2 = [i * 2 for i in l1]
print(l2)

l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
RES = 0
for num in l1:
    RES += num ** 2
print(RES)

TIME1 = 3 # litres = 1
TIME2 = 6.7 # litres = 3
TIME3 = 11.8 # litres = 5

print(int(TIME1 // 2))
print(int(TIME2 // 2))
print(int(TIME3 // 2))

print(int(TIME1 / 2))
print(int(TIME2 / 2))
print(int(TIME3 / 2))

SSS = 'Hello world'
if ' ' in SSS:
    SSS = SSS.upper()
else:
    SSS = SSS.lower()

print(SSS)

#  soat rasmichiqadi tkinter yuklash kerak
# From tkinter import *
# From tkinter.ttk import *
# 
# From time import strftime
# 
# root = Tk()
# root.title('Digital clock')
# 
# def time ():
#     clock = strftime('%H:%M:%S %p')
#     laber.config(text=clock)
#     laber.after(1000, time)
